package com.jiyun.service.impl;

import com.jiyun.entity.Reviews;
import com.jiyun.entity.vo.ReviewsVo;
import com.jiyun.mapper.ReviewsMapper;
import com.jiyun.service.IReviewsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 23052
 * @since 2025-02-18
 */
@Service
public class ReviewsServiceImpl extends ServiceImpl<ReviewsMapper, ReviewsVo> implements IReviewsService {

    @Autowired
    private ReviewsMapper reviewsMapper;

    @Override
    public List<ReviewsVo> findReviews(Integer tid) {
        return reviewsMapper.findReviews(tid);
    }
}
